<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Pesquisa de Contas a Receber</title>
        <link href="/Digipao/media/css/bootstrap.css" rel="stylesheet" type="text/css"/>
        <link href="/Digipao/media/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css"/>
        <link href="/Digipao/media/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="/Digipao/media/css/backgroud-digipao.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <script type="text/javascript" src="js/digipao.js"></script>

        <form action="pesquisaContasReceber" method="post">
            <div id="fundo-externo">
                <div id="fundo">
                    <img src="/Digipao/media/images/zoom-bg-1.jpg" alt=""/>
                </div>
            </div>

            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center margin-top-20">
                <h1 class="templatemo-site-title">
                    <img src="/Digipao/media/images/digipao100714-2115100714-2117.png" alt=""/>
                    <h2>Resultado da Contas a Receber</h2>    
                </h1>
            </div>

                       <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 margin-top-20">
                <div class="container-fluid container panel panel-default">
                    <br/>
                    <table class="table table-hover table-striped">
                        <tr valign="baseline" bgcolor="#404060">
                            <th align="center" style="border: 1px solid black; width: 90px">Descricao Conta:</th>
                            <th align="center" style="border: 1px solid black; width: 90px">Data Cadastro:</th>
                            <th align="center" style="border: 1px solid black; width: 90px">Data Vencimento:</th>
                            <th align="center" style="border: 1px solid black; width: 90px">Data do Recebimento:</th>
                            <th align="center" style="border: 1px solid black; width: 20px"></th>
                        </tr>
                        <c:forEach var="contasReceber" items="${ListaContasReceber}">  
                            <tr style="border: 1px solid black;">
                                <td style="border: 1px solid black;">
                                    <c:out value="${contasReceber.descricaoConta}" />
                                </td>
                                <td style="border: 1px solid black;">
                                    <c:out value="${contasReceber.dataCadastro}" />
                                </td>
                                <td style="border: 1px solid black;">
                                    <c:out value="${contasReceber.dataVencimento}" />
                                </td>
                                <td style="border: 1px solid black;">
                                    <c:out value="${contasReceber.dataRecebimento}" />
                                </td>
                                <td>
                                    <input type="radio" name="select" value="${contasReceber.idContasReceber}"/>
                                </td>
                            </tr>
                        </c:forEach>
                    </table>
                    <br/>
                    <div style="text-align: center">
                        <button class="btn btn-default" type="submit" name="operacao" value="Alterar">Alterar</button>
                        <button class="btn btn-default" type="submit" name="operacao" value="Deletar">Deletar</button>
                        <button class="btn btn-default" type="submit" name="operacao" value="PesquisarNovamente">Pesquisar</button>
                        <button class="btn btn-default" type="submit" name="operacao" value="Cancelar">Cancelar</button>
                    </div>
                    <br/>
                </div>
            </div>
        </form>
    </body>
</html>
